package netty.protocoltcp;

/**
 * @ClassName MessageProtocol
 * @Description TODO
 * @Author director吴
 * @Date 2022/5/17 16:52
 * @Version 1.0
 **/

//自定义协议
public class MessageProtocol {

    private int lenth;      //关键，定义协议中接收数据的长度，以长度为基准进行解码或者数据分离，分离成为我们需要的数据
    private byte[] count;

    public int getLenth() {
        return lenth;
    }

    public void setLenth(int lenth) {
        this.lenth = lenth;
    }

    public byte[] getCount() {
        return count;
    }

    public void setCount(byte[] count) {
        this.count = count;
    }
}
